package com.fengyunhe.oauth.service.impl;

import com.fengyunhe.oauth.service.OAuthService;
import org.springframework.stereotype.Service;

/**
 * OAuth授权服务
 * Created by yangyan on 2015/6/29.
 */
@Service
public class OAuthServiceImpl implements OAuthService {
    @Override
    public void addAuthCode(String authCode, Integer uesrId) {

    }

    @Override
    public void addAccessToken(String accessToken, Integer userId) {

    }

    @Override
    public boolean checkAuthCode(String authCode) {
        return false;
    }

    @Override
    public boolean checkAccessToken(String accessToken) {
        return false;
    }

    @Override
    public Integer getUserIdByAuthCode(String authCode) {
        return null;
    }

    @Override
    public Integer getUserIdByAccessToken(String accessToken) {
        return null;
    }

    @Override
    public long getExpireIn() {
        return 0;
    }

    @Override
    public boolean checkClientId(String clientId) {
        return true;
    }

    @Override
    public boolean checkClientSecret(String clientSecret) {
        return false;
    }
}
